# 基础镜像
FROM  openjdk:8-jre
# 挂载目录
VOLUME /home/ruoyi-erueka
# 创建目录
RUN mkdir -p /home/ruoyi-erueka
# 指定路径
WORKDIR /home/ruoyi-erueka
# 复制jar文件到路径
COPY ./jar/ruoyi-gateway.jar /home/ruoyi/ruoyi-erueka.jar
# 启动网关服务
ENTRYPOINT ["java","-jar","/home/ruoyi/ruoyi-erueka.jar"]